// 引入获取权限
import { useUserStore } from '/@/store/modules/user';
//    判断权限
const useStore = useUserStore();
export const permissList = (modelId: any, enCode: string) => {
  return useStore.permissionList.find(res => res.modelId == modelId)?.button.findIndex(res => res.enCode == enCode) != -1;
};
// 判断用户名
export const getuseName = () => {
  return useStore?.userInfo.isAdministrator;
};
//1 刷新 2 重新登录
